package com.daxiong.pattern.factory.demo;

/**
 * 奔驰C180
 *
 * @author sunyanxiong
 * @date 2017/4/23
 */
public class BenzC180 implements Benz {

    public BenzC180() {
        this.carColor();
        this.carSpeed();
        this.carPrice();
    }

    public String carColor() {
        System.out.println("奔驰 C180 黑色");
        return "黑色";
    }

    public Double carSpeed() {
        System.out.println("奔驰 C180 500迈每小时");
        return 500D;
    }

    public Double carPrice() {
        System.out.println("奔驰 C180 12000000万");
        return 12000000D;
    }
}
